import { constantRoutes } from '@/router/index'
const state = {
  if(constantRoutes) {
    [...constantRoutes]
  }

}

const mutations = {
  setMenus(state, asyncRoutes) {
    if (constantRoutes && asyncRoutes) {
      state.menuList = [...constantRoutes, ...asyncRoutes]
    }
  }
}

export default {
  namespaced: true,
  state,
  mutations
}
